"""
    面向对象：复用父类的方法
"""

class Person:
    def __init__(self,name):
        self.name = name

    def eat(self):
        print("everyone need eat")

class Student(Person):
    def __init__(self, name):
        super().__init__(name)
        self.name = name

    def study(self):
        super().eat()
        print("student need study")


student = Student("佳佳")
student.study()